package com.yilin.tms.core.entity.user.account;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yilin.tms.core.commons.base.BaseEntity;
import com.yilin.tms.core.entity.user.UserType;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;


@Entity
@Table(name = "user_credit_record")
@TableName("user_credit_record")
public class CreditRecord extends BaseEntity {

    @Column(name = "account_id")
    private String accountId;
    @Column(name = "account_name")
    private String accountName;

    @Column(name = "organize_id")
    private String organizeId;//组织ID
    @Column(name = "organize_name")
    private String organizeName;//组织名称

    @Column(name = "user_type")
    private UserType userType;  //用户类型

    @Column(name = "handle_credit")
    private Double handleCredit;//操作分
    @Column(name = "handle_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date handleTime;//操作时间
    @Column(name = "handle_user_id")
    private String handleUserId;//操作人
    @Column(name = "handle_user_name")
    private String handleUserName;//操作人

    @Column(name = "handle_pre_credit")
    private Double handlePreCredit;//操作前分数
    @Column(name = "handle_later_credit")
    private Double handleLaterCredit;//操作后分数
    @Column(name = "handle_reason")
    private String handleReason;//操作理由


    public String getHandleReason() {
        return handleReason;
    }

    public void setHandleReason(String handleReason) {
        this.handleReason = handleReason;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public Double getHandlePreCredit() {
        return handlePreCredit;
    }

    public void setHandlePreCredit(Double handlePreCredit) {
        this.handlePreCredit = handlePreCredit;
    }

    public Double getHandleLaterCredit() {
        return handleLaterCredit;
    }

    public void setHandleLaterCredit(Double handleLaterCredit) {
        this.handleLaterCredit = handleLaterCredit;
    }

    public String getOrganizeId() {
        return organizeId;
    }

    public void setOrganizeId(String organizeId) {
        this.organizeId = organizeId;
    }

    public String getOrganizeName() {
        return organizeName;
    }

    public void setOrganizeName(String organizeName) {
        this.organizeName = organizeName;
    }

    public UserType getUserType() {
        return userType;
    }

    public void setUserType(UserType userType) {
        this.userType = userType;
    }

    public Double getHandleCredit() {
        return handleCredit;
    }

    public void setHandleCredit(Double handleCredit) {
        this.handleCredit = handleCredit;
    }

    public Date getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(Date handleTime) {
        this.handleTime = handleTime;
    }

    public String getHandleUserId() {
        return handleUserId;
    }

    public void setHandleUserId(String handleUserId) {
        this.handleUserId = handleUserId;
    }

    public String getHandleUserName() {
        return handleUserName;
    }

    public void setHandleUserName(String handleUserName) {
        this.handleUserName = handleUserName;
    }
}
